package com.heimatest.test02;

import javax.swing.*;
import java.awt.*;

public class MyJFrame extends JFrame {
    public MyJFrame(){
        init();
    }
    private void init(){
        this.setTitle("java课程");
        this.setSize(400,300);
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
        this.setLayout(new FlowLayout(FlowLayout.LEFT,30,30));
        JButton jb1 = new JButton("Git");
        JButton jb2 = new JButton("Static");
        JButton jb3 = new JButton("Final");
        JButton jb4 = new JButton("继承");
        JButton jb5 = new JButton("多态");
        JButton jb6 = new JButton("抽象类");
        JButton jb7 = new JButton("接口");
        JButton jb8 = new JButton("内部类");
        this.add(jb1);
        this.add(jb2);
        this.add(jb3);
        this.add(jb4);
        this.add(jb5);
        this.add(jb6);
        this.add(jb7);
        this.add(jb8);


        this.setVisible(true);
    }
}
